package test916;

import java.util.Scanner;

public class myYear {
    public static void main(String[] args) {
        System.out.println("please enter a year: ");
        Scanner scanner = new Scanner(System.in);
        int year = scanner.nextInt();
        if (year % 4 == 0) {
            if (year % 100 != 0 || year % 400 == 0) {
                System.out.println("闰年");
            }
            else
            {
                System.out.println("平年");
            }
        }
    }
}
//可以被4整除是平年
//在上面基础上，不能被100整除，可以被400整除是闰年